/**
 * 系统登录处理类
 */

$(function() {
	$('.login-hover').hover(function() {
		$(this).css({
			borderColor : 'yellow'
		});
	}, function() {
		$(this).css({
			borderColor : '#FFF'
		});
	});
});

$(function(){
	$.fn.valign = function(){
		 return this.each(function(i){
			 var H = Math.ceil($(this).height());
			 var oh = Math.ceil($(this).outerHeight());
			 var mt = Math.ceil( oh/2 );
			 var W = Math.ceil($(this).width());
			 var ow = Math.ceil($(this).outerWidth());
			 var ml = Math.ceil( ow/2 );
			 $(this).css({
				 "margin-top": "-" + mt + "px",
					"top": "50%",
					"margin-left": "-" + ml + "px",
					"left": "50%",
					"position": "absolute" 
			 });
			 
		 });
	};
	$(".login-warp").valign();
	$(".login-top").valign();
	
	
	
	
});




